#pragma once

class CTrayIcon
{
public:
	CTrayIcon(void);
	~CTrayIcon(void);
	void Create(HWND hWnd, HICON hIcon, UINT nMsg, LPCTSTR pTipStr = NULL);
	void Update(HICON hIcon, LPCTSTR pTipStr = NULL);

private:
	void Copy2TipStr(LPCTSTR pStr);
	PNOTIFYICONDATA GetIconData();

private:
	HWND m_hWnd;
	HICON m_hIcon;
	UINT m_nMsg;
	LPTSTR m_pTipStr;
};

